home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: Randomize
- Date: 6 Mar 1996 09:53:23 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4hjnaj$qc4@news1.usa.pipeline.com>
- References: <313BD7D1.6143@IntNet.net>
- NNTP-Posting-Host: pipe13.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 05, 1996 00:57:37 in article <Randomize>, 'Dave Cohoon
- <kahuna@IntNet.net>' wrote:
-
-
- >I have been learning C++ from books for the last 3 months, untill the next
-
- >semester rolls around.
- >I've been working with "Teach Yourself C++ in 21 days" by Jesse Liberty.
- >
- >2 questions as follows:
- >
- >(1) I cannot find a way to create a randomized int, this is one of the
- simplest
- >functions in
- >basic, but in C++, I have no idea. Please Help.
- >
- 1. Once in your program, call srand(). Check your online docs on how
- to pass it time of day as a seed.
-
- 2. rand() is the function to call for a pseudo random number.
-
- [... other questions deleted ---]
- >
- >P.S.----recently heard a few rumors that JAVA will probably be the future
-
- >standard for the
- >windows environment, Does this seem to be a true prediction, and if so,
- How
- >different is it from
- >C++
- >
- My guess is no.
- But I don't have a crystal ball.... :-)
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-